<template>
  <div>
    <h3>自定义子组件MyCom2</h3>
    <p>{{ value }} </p>
    <button @click="$emit('input', value + 2)">点击+2</button>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      default: 0
    }

  },
  methods: {

  }
}
</script>

<style>

</style>
